package net.jarang.study.spring.annotation;

import java.util.Map;

import javax.validation.constraints.Size;

import org.springframework.format.annotation.NumberFormat;

public class User {
	private int id;
	private int visitCount;
	private boolean registered;
	private Map<String, String> interestMap;
	


	private String password;
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Size(min=5, max=10)
	private String name;
	private int age;
	
	@NumberFormat(pattern="###,##0")
	private int point;

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public User() {
	}
	
	public int getVisitCount() {
		return visitCount;
	}

	public void setVisitCount(int visitCount) {
		this.visitCount = visitCount;
	}
	
	public int getAge() {
		return age;
	}
	
	public void setAge(int age) {
		this.age = age;
	}

	public User(int id, String name) {
		this.id = id;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isRegistered() {
		return registered;
	}

	public void setRegistered(boolean registered) {
		this.registered = registered;
	}

	public Map<String, String> getInterestMap() {
		return interestMap;
	}

	public void setInterestMap(Map<String, String> interestMap) {
		this.interestMap = interestMap;
	}

}
